import random
n = int(input())
a = 0
for i in range(1,n+1):
    x = random.randint(-100,100)
    y = random.randint(-100,100)
    if x >= -7 and x <= 5 and y >= -8 and y <= 5:
        print("Попал")
        print(x,y)
        a += 1
    else:
        print("Не попал")
        print(x,y)
print("Ты попал",a,"раз")

